
export function removeArray (allItems, removeItems) {
  for (let removeItem of removeItems) {
    for (var i = 0; i < allItems.length; i++) {
      if (allItems[i].id === removeItem.id) {
        allItems.splice(i, 1)
        break
      }
    }
  }
  return allItems
}

export function copyObject (returnObject, oldObject) {
  if (oldObject != null && oldObject !== undefined) {
    for (let key1 of Object.keys(oldObject)) {
      returnObject[key1] = oldObject[key1]
    }
  }
  return returnObject
}
